package com.xyu.gulimall.product.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.xyu.common.utils.PageUtils;
import com.xyu.gulimall.product.entity.CategoryEntity;
import com.xyu.gulimall.product.vo.Catelog2Vo;

import java.util.List;
import java.util.Map;

/**
 * 商品三级分类
 *
 * @author wangyufei
 * @email 2070522113@qq.com
 * @date 2021-05-03 21:26:59
 */
public interface CategoryService extends IService<CategoryEntity> {

    PageUtils queryPage(Map<String, Object> params);

    List<CategoryEntity> listWithTree();

    void removeMenuByIds(List<Long> asList);

    List<Long> findCateLogPath(Long catelogId);

    void updateCascade(CategoryEntity category);

    List<CategoryEntity> getLevelCategorys();

    Map<String,List<Catelog2Vo>> getCatalogJsonRedis();

    Map<String, List<Catelog2Vo>> getCatelogJson();
    Map<String, List<Catelog2Vo>> getCatelogSeataJson();
}

